<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?php echo ($title); ?></title>
</head>
<body>
<div>
  <?php if(empty($_SESSION['admin'])): ?><h1>后台管理程序</h1>
  <form action="" method="post">
  用户名：<input type="text"name="admin">
  密码：<input type="password" name="password">
  <input type="submit" value="登录">
  </form><?php endif; ?>
 </div>
 <?php if(!empty($_SESSION['admin'])): ?><h1>后台管理</h1>
<a href="/hmtBook/">回到首页</a>
<ul>
<li><a href="#">添加管理员</a></li>
<li><a href="/hmtBook/admin.php/Home/Index/addGroup">添加分组</a></li>
<li><a href="/hmtBook/admin.php/Home/Index/addMember">添加成员</a></li>
<li><a href="/hmtBook/admin.php/Home/Index/editMember">编辑成员</a></li>
<li><a href="/hmtBook/admin.php/Home/Index/logout">退出登录</a></li>
</ul>
<h3>所有分组：</h3>
<table>

<tr><td>序号</td><td>1</td><td>1</td></tr>
<tr><td>分组名</td><td><a href="#">test</a></td><td><a href="#">test</a></td></tr>
<tr><td>总人数</td><td>22</td><td>22</td></tr>

</table>
<h3>快速查看所有成员</h3>
<ul>
<li>在任</li>
<table>

<tr><td>ID</td><td><a href="#">佛怒轮回</a></td><td><a href="#">test</a></td></tr>
<tr><td>真名</td><td>test</td><td>test</td></tr>
<tr><td>年级</td><td>2012</td><td>2012</td></tr>

</table>

<li>卸任</li>
</ul><?php endif; ?>
</body>
</html>